﻿using QMERP.SeedWork;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 盘点单
    /// </summary>
    public partial class InventoryOrder : FullEntity<long>
    {
        public InventoryOrder() 
        {
            InventoryOrderDetails = new HashSet<InventoryOrderDetail>();
        }
        /// <summary>
        /// 盘点单号
        /// </summary>
        public string Number { get; set; } = "";
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; } = "";
        /// <summary>
        /// 审核人Id
        /// </summary>
        public long? CheckedBy { get; set; }
        /// <summary>
        /// 审核人名称
        /// </summary>
        public string? CheckedByName { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? CheckedOn { get; set; }
        /// <summary>
        /// 完成人Id
        /// </summary>
        public long? FinishedBy { get; set; }
        /// <summary>
        /// 完成人名称
        /// </summary>
        public string? FinishedByName { get; set; }
        /// <summary>
        /// 完成时间
        /// </summary>
        public DateTime? FinishedOn { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 盘点单详情列表
        /// </summary>
        public virtual ICollection<InventoryOrderDetail> InventoryOrderDetails { get; set; }
    }
}
